package priv.mill.demo;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;

public class MyListener2 implements MessageListener {

	public void onMessage(Message message) {
		try {
			System.out.println(String.format("订阅2消息：%s;", ((TextMessage) message).getText()));
		} catch (JMSException e) {
			e.printStackTrace();
		}
}

}
